﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/Main.Master"  CodeBehind="Home.aspx.cs" Inherits="Agile_E.Home" %>

<asp:Content ID="sales" ContentPlaceHolderID="main1" runat="server">
    <h1>Welcome, <asp:Label ID="lblemp" runat="server"></asp:Label></h1>
<h2>Dealership Information</h2>
<table style="width:55%">
<tr><td><asp:Label ID="lblname" runat="server" Font-Size="Larger"></asp:Label></td></tr>
<tr><td><asp:Label id="lbladdr" runat="server" Font-Size="Large"></asp:Label></td></tr>
<tr><td><asp:Label id="lblphone" runat="server" Font-Size="Large"></asp:Label></td></tr>
</table>
<br /><br />
<a href="Pending.aspx">Submit pending sales</a>
<h2>Pending Sales</h2>
<asp:GridView ID="PendingSales" runat="server" DataSourceID="srcgrdpend" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="5" GridLines="Vertical" >

    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />

    <Columns>
        <asp:BoundField HeaderText="SalesPerson" DataField="Seller" />
        <asp:BoundField HeaderText="Customer" DataField="name" />
        <asp:BoundField HeaderText="Year" DataField="V_Year" />
        <asp:BoundField HeaderText="Make" DataField="Make" />
        <asp:BoundField HeaderText="Model" DataField="Model" />
        <asp:BoundField HeaderText="Agreed Price" DataField="Agreed_Price" />

    </Columns>
    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
<asp:SqlDataSource ID="srcgrdpend" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>"></asp:SqlDataSource>

<h2>Recent Sales</h2>
<asp:GridView ID="RecentSales" runat="server" DataSourceID="srcgrdsold" 
        AutoGenerateColumns="False" runat="server" BackColor="White" CssClass="CarGridStyle"
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Vertical">
    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
    <Columns>
        <asp:BoundField HeaderText="Salesperson" DataField="Seller" />
        <asp:BoundField HeaderText="Customer" DataField="name" />
        <asp:BoundField HeaderText="Year" DataField="V_Year" />
        <asp:BoundField HeaderText="Make" DataField="Make" />
        <asp:BoundField HeaderText="Model" DataField="Model" />
        <asp:BoundField HeaderText="Sold Price" DataField="Agreed_Price" />
    </Columns>
    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="#DCDCDC" />
</asp:GridView>
<asp:SqlDataSource ID="srcgrdsold" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>"
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>"></asp:SqlDataSource>
    
</asp:Content>
